ArcGIS Runtime SDK for WPF - Library Reference
InitializeWithLocalServiceAsync(Locator,String,Action<LocalGeocodeService>) Method
See Also 
ESRI.ArcGIS.Client.Tasks Namespace > LocatorLocalExtensions Class > InitializeWithLocalServiceAsync Method : InitializeWithLocalServiceAsync(Locator,String,Action<LocalGeocodeService>) Method

locator
A Locator to initialize.
path
A System.String representing the path to a Locator Package, folder or Geodatabase.
callback
Asynchronously initializes a Locator task instance with a ESRI.ArcGIS.Client.Local.LocalGeocodeService.UrlGeocodeService based on the provided path to a Geocode Package (.gcpk) or alternatively a folder or Geodatabase containing a locator.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Sub InitializeWithLocalServiceAsync( _
   ByVal locator As Locator, _
   ByVal path As String, _
   ByVal callback As Action(Of LocalGeocodeService) _
) 
C# 
public static void InitializeWithLocalServiceAsync( 
   Locator locator,
   string path,
   Action<LocalGeocodeService> callback
)

Remarks

This method accepts only a Locator task and the path to a package or workspace. If the package or workspace contains more than one locator the API will automatically use the first locator found.

This method will reuse an existing local geocode service if one exists with the same properties or start a new one if none are found on the runtime local server.

Parameters

locator
A Locator to initialize.
path
A System.String representing the path to a Locator Package, folder or Geodatabase.
callback

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.